#include <Range.h>
 
Range::Range(const double& min_i, const double& max_i):
    min_m(min_i),
    max_m(max_i)
{
}

bool Range::isValid(const double para_i) const
{
    return false;
}

LopenRopenRange::LopenRopenRange(const double& min_i, const double& max_i):
    Range(min_i, max_i)
{
}

bool LopenRopenRange::isValid(const double para_i) const 
{
    return ((para_i > min_m) && (para_i < max_m));
}

LopenRcloseRange::LopenRcloseRange(const double& min_i, const double& max_i):
    Range(min_i, max_i)
{
}


bool LopenRcloseRange::isValid(const double para_i) const
{
    return ((para_i > min_m) && (para_i <= max_m));
}

LcloseRopenRange::LcloseRopenRange(const double& min_i, const double& max_i):
    Range(min_i, max_i)
{
}


bool LcloseRopenRange::isValid(const double para_i) const
{
    return ((para_i >= min_m) && (para_i < max_m));
}

LcloseRcloseRange::LcloseRcloseRange(const double& min_i, const double& max_i):
    Range(min_i, max_i)
{
}


bool LcloseRcloseRange::isValid(const double para_i) const
{
    return ((para_i >= min_m) && (para_i <= max_m));
} 

